package com.gmp.product.service;

import java.util.List;
import com.gmp.product.domain.WorkDispatch;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 派单Service接口
 *
 * @author Koi
 * @date 2025-10-10
 */
public interface IWorkDispatchService extends IService<WorkDispatch> {
    /**
     * 查询派单
     *
     * @param id 派单主键
     * @return 派单
     */
    public WorkDispatch selectWorkDispatchById(String id);

    /**
     * 查询派单列表
     *
     * @param workDispatch 派单
     * @return 派单集合
     */
    public List<WorkDispatch> selectWorkDispatchList(WorkDispatch workDispatch);

    /**
     * 新增派单
     *
     * @param workDispatch 派单
     * @return 结果
     */
    public int insertWorkDispatch(WorkDispatch workDispatch);

    /**
     * 修改派单
     *
     * @param workDispatch 派单
     * @return 结果
     */
    public int updateWorkDispatch(WorkDispatch workDispatch);

    /**
     * 批量删除派单
     *
     * @param ids 需要删除的派单主键集合
     * @return 结果
     */
    public int deleteWorkDispatchByIds(String[] ids);

    /**
     * 删除派单信息
     *
     * @param id 派单主键
     * @return 结果
     */
    public int deleteWorkDispatchById(String id);
}
